import { defineStore } from "pinia"
import { defaultAppSettings, type AppSetting } from "@/settings"

/**
 * 系统配置
 */
export const useAppStore = defineStore("app", () => {
    const setting = ref<AppSetting>({ ...defaultAppSettings })
    // 页面标题
    const viewTitle = computed(() => setting.value.appName)

    return { setting, viewTitle }
})
